home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / cli / TypeIt.lha / TypeIt.doc < prev    next >
Text File  |  1994-05-12  |  15KB  |  416 lines

  1.  
  2.  
  3. *
  4.  
  5.           Documetation for TypeIt - Release 1.0 Version 37.1
  6.  
  7.                              May 12, 1994
  8.  
  9.  
  10. Introduction
  11. =============
  12.  
  13.    Do you hate typing out often used words and phrases? Wish the
  14. computer knew what you were thinking? Not possible...yet, but TypeIt
  15. brings it a little closer.
  16.  
  17.    Or maybe you have some words that you always misspell. Like
  18. "reciept" instead of "receipt", or "seperate" rather than "separate". 
  19. Just put these in your dictionary and you'll never even have to type
  20. them again.
  21.  
  22.    TypeIt uses a dictionary that contains words, phrases and even
  23. multi-line phrases. When you type one or more letters and then press a
  24. special "Expand Key" hotkey, TypeIt tries to match what you have typed
  25. with what is in its dictionary. It will then type the rest for you.
  26.  
  27.    If you have more than one entry that matches what you have typed,
  28. repeated pressing of the hotkey will delete the characters sent and
  29. then send the next entry. The screen will flash when there are no more
  30. matching entries (If you have "Make Sound" checked in Sound
  31. Preferences, there will also be a beep).
  32.  
  33.    TypeIt learns your typing habits. The more frequently used words
  34. move to the front of the list.
  35.  
  36.    TypeIt resets its character memory when you press any non-printable
  37. key or the space bar. In other words, if you were typing a word and then
  38. pressed the space bar, return, ctrl-x, an arrow key or anything else
  39. that does not display a character, TypeIt will forget the previous
  40. characters.
  41.  
  42.    The dictionary "TypeIt.dict" is just an arbitrary collection of words
  43. that is provided simply to demonstrate TypeIt. You will want to create
  44. your own custom dictionary.
  45.  
  46.    A large dictionary such as a spell checker is not very useful
  47. because there are just too many words that begin with the same first
  48. few letters. For example, if you typed "calc", you would have all these
  49. possibilities:
  50.  
  51. calcification, calcified, calcifies, calcify, calcite, calcium,
  52. calculate, calculation, calculative, calculator, calculus
  53.  
  54.    The dictionaries c.dict and m2.dict are included for programmers.
  55. You will probably have to make some modifications to make certain
  56. multi-line phrases work correctly with your particular editor.
  57.  
  58.  
  59. Installation
  60. =============
  61.  
  62.    Installation is simple. Just place TypeIt in your WBStartup drawer
  63. and your dictionary wherever you want. Enter its path and name in the
  64. Tool Types gadget of TypeIt's icon. For example, DICTIONARY=TypeIt.dict
  65. will read the dictionary from the same directory that TypeIt is in.
  66.  
  67.    TypeIt may be run from the shell or from its icon, but it is usually
  68. best to place it in your WBStartup drawer. Running TypeIt a second time
  69. will bring up its interface window.
  70.  
  71.    From the shell or its icon, the arguments are the same.
  72.  
  73. CX_POPUP
  74.      If "CX_POPUP=yes", TypeIt's interface will open when the program is
  75.      first run. Normally you will set this to "CX_POPUP=no".
  76.  
  77. CX_POPKEY
  78.      The key combination to use to open the interface window. Use the
  79.      normal key specification for commodities. Default is
  80.      "CX_POPKEY=control alt t".
  81.  
  82. CX_PRIORITY
  83.      The priority that this program receives events. Default is
  84.      "CX_PRIORITY=0".
  85.  
  86. DICTIONARY
  87.      The full path and file name for the dictionary.
  88.      "DICTIONARY=TypeIt.dict" is the default, which means that the
  89.      dictionary should be in the same directory as TypeIt.
  90.  
  91. EXPAND_KEY
  92.      This specifies the key combination to use to expand what you have
  93.      typed into what matches in your dictionary. The default is
  94.      "EXPAND_KEY=shift space".
  95.  
  96. NOTIFY
  97.      If "yes", TypeIt will watch your dictionary. If you make changes to
  98.      it with an editor, TypeIt will re-read it so your changes are
  99.      immediately available. You do not have to "Load" it again. TypeIt
  100.      will not re-read it after saving through the "Save..." gadget; it
  101.      already knows about your changes. The default is "NOTIFY=yes".
  102.  
  103. GET_SMART
  104.      When "yes", TypeIt will change the order that words are selected
  105.      for expansion. Words used more frequently will be displayed first.
  106.      The order will be forgotten when TypeIt is terminated unless you
  107.      "Save..." from the interface window. The default is
  108.      "GET_SMART=yes".
  109.  
  110. DONOTWAIT
  111.      Use this to allow Workbench to continue after starting TypeIt.
  112.  
  113. A shell example:
  114.  
  115. run >nil: <nil: TypeIt "expand_key=shift space" dictionary=s:typeit.dict
  116.  
  117.    TypeIt uses the standard commodity key combinations.
  118.  
  119. Qualfiers
  120.  
  121.      lshift      rshift      shift       lalt       ralt        alt
  122.      lcommand    rcommand    control     numericpad capslock    caps  repeat
  123.  
  124. Keys
  125.  
  126.      space       backspace   tab         enter      return      esc
  127.      del         up          down        right      left        f1 - f10
  128.      help
  129.  
  130.    If you use  "lcommand space", that means you press <left Amiga-space>
  131. as a hotkey. To use any normal key, just specify the character on the
  132. keycap. For example: "control e", "alt shift t", "rcommand t".
  133.  
  134.    If you use "-repeat", then when the hotkey is held down, each repeat
  135. will be considered another hotkey event. If "-repeat" is omitted, the
  136. first time will be a hotkey, repeats will then be treated as regular
  137. key repeats.
  138.  
  139.    To further clarify: If your hotkey is "shift space", holding that
  140. combination down will generate one hotkey event (attempt to match the
  141. previous letters with a word in the dictionary) and then shift spaces
  142. which will not be hotkeys. If you use "shift -repeat space", then
  143. holding that will generate a hotkey event for each key repeat.
  144.  
  145.  
  146. Creating Your Custom Dictionary
  147. ================================
  148.  
  149.    A custom dictionary is simply a list of words or phrases, one to a
  150. line. You may use any text editor or word processor that provides a way
  151. to save as normal text. Most, if not all, have some method of doing
  152. this. Use the included dictionaries as a guide.
  153.  
  154.   1. Each entry must be less than 255 characters and must begin with a
  155.      low-ascii character (! to ~), (hex 0x21 to 0x7e). In other words,
  156.      all letters that are printable without needing the Alt key.
  157.  
  158.   2. Other characters are allowed in the entry (such as <alt-e>), but
  159.      they will not match when the "Expand Key" is pressed. That means
  160.      that if given the entry  "qw©rty"  and the user types "qw", 
  161.      "©rty"  will be displayed. But if the user types  "qw©",  that
  162.      will not match.
  163.  
  164.   3. "Dead keys" are handled as normal ascii characters. "Dead keys" are
  165.      combinations that put accent characters on letters. For example,
  166.      if you press "<Alt-f>e", you will get an accented  é.
  167.  
  168.   4. All entries with a common first character will be grouped into a
  169.      single list with the most frequently used words first.
  170.  
  171. Given this group:
  172.  
  173.      #include ".h"\3L
  174.      #include <.h>\3L
  175.      #define \
  176.  
  177. "#include ".h"" will be displayed when the user types a single "#",
  178. then "#include <.h>" and finally "#define ". (The \3L moves the cursor
  179. left 3 characters. The trailing \ for #define insures a space.)
  180.  
  181.    The dictionary does not need to be in alphabetical order, although it
  182. might be easier for you to organize if it is. Within an alphabetical
  183. group, entries should be arranged by their desired order of appearance.
  184. After you "Save..." (from the interface window), word groups will be in
  185. alphabetical order with the more frequently used words listed first in
  186. each group. All words beginning with "a" will be before words beginning
  187. with "b". But, the words beginning with "a" will be in order of their
  188. usage, not in alphabetical order.
  189.  
  190. Given this group:
  191.  
  192.      intuition
  193.      include:
  194.      international
  195.  
  196. "intuition" would be the first choice after typing "in", followed by
  197. "include:" and then "international".
  198.  
  199.    It is also possible to use abbreviations like:
  200.  
  201. FSF\3BFree Software Foundation
  202.  
  203.    This will delete user typed "FSF" and then send "Free Software
  204. Foundation". Once an abbreviation has been typed out, you cannot
  205. display more entries because the abbreviation will be deleted. Of
  206. course, if you use GNU Emacs, you already have an abbreviation mode.
  207.  
  208.    *Note Special Dictionary Features::.
  209.  
  210. About case sensitivity
  211. ======================
  212.  
  213.    When adding words, remember to only start an entry in upper case if
  214. you want it to match only upper case. To match either upper or lower
  215. case, start the entry in lower case.
  216.  
  217.    When the user types "Bri" you want that to match "brilliant", but
  218. when the user types "bri", you do not want it to match "Brian Moats".
  219. This allows the matching of words normally lowercase but may be
  220. uppercase at the beginning of a sentence.
  221.  
  222. About punctuation
  223. =================
  224.  
  225.    Dictionary entries may start with any punctuation character.
  226. '#include' is allowed. However, when TypeIt checks for matches, if it
  227. does not find a match and there is punctuation in what you have typed,
  228. TypeIt will attempt to match from the last punctuation character. For
  229. example:
  230.  
  231. Given these dictionary entries:
  232.  
  233.      headers/
  234.      Conglomeration
  235.  
  236. and you type '/include/h', TypeIt will first attempt to match
  237. '/include/h'. Failing that, it will try 'h' and type out 'eaders/'.
  238.  
  239.    If you type '"Con', TypeIt will first check for entries beginning
  240. with '"' and then it will skip the '"' and type out 'glomeration'.
  241.  
  242.  
  243. Special Dictionary Features
  244. ============================
  245.  
  246.    Sometimes you will want the cursor placed at a specific location or
  247. have a Return sent. The arrow, Return, and the Backspace may be sent by
  248. prefacing a letter with a backslash (\).
  249.  
  250.      \L ... Left arrow.
  251.  
  252.      \R ... Right arrow.
  253.  
  254.      \U ... Up arrow.
  255.  
  256.      \D ... Down arrow.
  257.  
  258.      \N ... Return (newline).
  259.  
  260.      \B ... Backspace.
  261.  
  262.      \\ ... Backslash.
  263.  
  264.      \W ... Warn if multiple lines follow.
  265.  
  266.    More than one keystroke may be sent by inserting a number between the
  267. backslash and the letter. "\10L" will send ten left arrows. The
  268. dictionaries c.dict and m2.dict provide many examples of this. Both of
  269. these dictionaries assume that your text editor has an auto-indent
  270. feature turned on.
  271.  
  272.    If \U, \D or \N is used, the "backing up to delete sent characters"
  273. is disabled. This is required because TypeIt cannot possibly know how
  274. your editor functions. For this reason, the "\W" feature is provided.
  275. Use this to warn that the phrase is a multi-line one. For example:
  276.  
  277. Brian Moats\W\NPolyglot Software\N884 W. Melrose Ln.\NBoise, ID  83706
  278.  
  279.    This displays "Brian Moats" and then a requester will appear
  280. allowing you to abort the execution.
  281.  
  282.    Many text editors do not save trailing blanks. If you want blanks at
  283. the end of a word, you may use a backslash alone. E.g. "Telephone \".
  284.  
  285.    The backslashed letters are not case sensitive.
  286.  
  287.  
  288. The Interface Window
  289. =====================
  290.  
  291.    TypeIt's interface window may be opened by:
  292.  
  293.   1. Pressing the key combination specified in the CX_POPKEY Tool Type.
  294.  
  295.   2. Running the Exchange program, selecting TypeIt, and clicking on
  296.      "Show Interface".
  297.  
  298.   3. Running TypeIt a second time.
  299.  
  300.    From the interface window, you may change the options:
  301.  
  302. Get Smart
  303.      With this selected, TypeIt will change the order that words are
  304.      selected for expansion. Words used more frequently will be
  305.      displayed first. The order will be forgotten when TypeIt is
  306.      terminated unless you "Save..." from the interface window.
  307.  
  308. Notify
  309.      With this is selected, TypeIt will re-read the dictionary after
  310.      you edit and save it. *Note!* Many text editors create backup
  311.      files. If yours does, it probably will rename the older file which
  312.      is the file that TypeIt is watching.  TypeIt will not know that
  313.      you made any changes. Use your editor's option to disable the
  314.      creation of backups before saving.
  315.  
  316.    After adding words to your dictionary from the interface window, you
  317. should click on "Save..." (which will open a file requester) and save
  318. your words. You should also save if you want to preserve what TypeIt
  319. has "learned" about your word order.
  320.  
  321.    Clicking on "Load..." will open a file requester. Select the desired
  322. dictionary file.
  323.  
  324.    Clicking on "Hide" or the close gadget will close the interface
  325. window.
  326.  
  327.    Clicking on "Quit" will remove TypeIt.
  328.  
  329.  
  330. Adding Words
  331. =============
  332.  
  333.    New words may be entered into your dictionary by simply editing the
  334. dictionary file with an editor. Words may also be added on the fly
  335. through the interface window.
  336.  
  337.    Suppose that you had just typed "configuration" for the millionth
  338. time and decided that you might as well add it in. Simply press the
  339. CX_POPKEY key combination (default: control alt t). The interface
  340. window will open with the word in the "New Word" string gadget. Modify
  341. it if you like and click on "Add". That word will be added to the head
  342. of the word list. It will be forgotten when you terminate TypeIt unless
  343. you also click on "Save...".
  344.  
  345.    You do not have to have just typed the word that you want to add.
  346. You can open the interface window and enter a word in the gadget
  347. anytime.
  348.  
  349.    If the window is already open when you press the CX_POPKEY, the
  350. letters that you had just typed will be placed in the string gadget.
  351. The same is true if you simply make the window active.
  352.  
  353.  
  354. Shareware and Registration
  355. ===========================
  356.  
  357.    TypeIt is being distributed as "buckware". This is the same as
  358. shareware, but with the low low price of just $1. Obviously, buckware
  359. needs many users. How difficult can it be to slip a buck into an
  360. envelope? (Send more if you like.)  Use it for "awhile" then register
  361. it if you want to continue using it.  With enough users sending in just
  362. 1 dollar, more development will go into TypeIt. You may also make any
  363. suggestions and requests when you register.
  364.  
  365.    Send your $1.00 registration fee to:
  366.  
  367.      Brian Moats
  368.      Polyglot Software
  369.      884 W. Melrose Ln.
  370.      Boise, ID 83706
  371.  
  372.    Also available is MachV Release 5.0 Version 37.8. This program is a
  373. combination of many utility programs.
  374.  
  375.   1. Keystrokes and mouse movements may be recorded and played back at
  376.      the touch of a key or the click of a gadget.
  377.  
  378.   2. Run programs or open a new shell at the touch of a key. Or move
  379.      screens and windows.
  380.  
  381.   3. Quickly view the contents of the clipboard. The contents may be
  382.      pasted (even to windows that do not support the clipboard) or
  383.      printed. Files may be loaded directly to the clipboard or saved
  384.      from the clipboard.
  385.  
  386.   4. Screen blanker/dimmer and mouse blanker.
  387.  
  388.   5. Full ARexx interface. Send commands to other ARexx compatible
  389.      programs and control MachV from ARexx programs.
  390.  
  391.   6. Optional title bar clock. Gadgets may be added to the clock which
  392.      may then execute macros.
  393.  
  394.  
  395.    This program is just $15.00. A demonstration version is also
  396. available. The demonstration version is fully functional...it just has a
  397. reminder window when first run and a limit of 25 macros. It is available
  398. on many BBSs or send either a disk and SASE or $2.00 and I'll send it to
  399. you.
  400.  
  401.  
  402. Copyright and Disclaimer
  403. =========================
  404.  
  405.    TypeIt and this documentation are (C) 1994 by Brian Moats.
  406.  
  407.    This product is sold "as is" without representation or warranty of
  408. any kind, either expressed or implied. The user assumes all risks and
  409. responsibilities related to its use. TypeIt was originally named
  410. Typhoon and released July 5, 1992 for JumpDisk.
  411.  
  412.    This documentation was written in "Texinfo mode" using GNU Emacs. It
  413. was then run through "MakeInfo" to create ASCII, "AmigaGuide", and TeX
  414. versions.
  415.  
  416.